package com.yixia.pea.domain.credit;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.yixia.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 
 * @TableName pea_score
 */
@TableName(value ="pea_score")
@Data
public class PeaScore extends BaseEntity {
    /**
     * 评议ID
     */
    @TableId(value = "score_id", type = IdType.AUTO)
    private Long scoreId;

    /**
     * 户主ID
     */
    @TableField(value = "hz_id")
    private Long hzId;

    /**
     * 评议员ID
     */
    @TableField(value = "senator_id")
    private Long senatorId;

    /**
     * 是否有赌博行为
     */
    @TableField(value = "gamble")
    private String gamble;

    /**
     * 是否有涉毒行为
     */
    @TableField(value = "drug_related")
    private String drugRelated;

    /**
     * 是否有嫖娼行为
     */
    @TableField(value = "whoring")
    private String whoring;

    /**
     * 是否有涉黑行为
     */
    @TableField(value = "black")
    private String black;

    /**
     * 是否有参与民间借贷行为
     */
    @TableField(value = "private_lending")
    private String privateLending;

    /**
     * 是否有参与网贷行为
     */
    @TableField(value = "online_loan")
    private String onlineLoan;

    /**
     * 爱党爱国
     */
    @TableField(value = "love_country")
    private String loveCountry;

    /**
     * 积极上进
     */
    @TableField(value = "aggresively")
    private String aggresively;

    /**
     * 家庭关系
     */
    @TableField(value = "family_rship")
    private String familyRship;

    /**
     * 诚信观念
     */
    @TableField(value = "inte_concept")
    private String inteConcept;

    /**
     * 评议完成状态，'0'表示未完成，'1'表示已完成
     */
    @TableField(value = "finish_status")
    private String finishStatus;

    /**
     * 其他说明
     */
    @TableField(value = "remark")
    private String remark;





    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    /////////////////////////////////////////////////////////////////////////////////////////




    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PeaScore other = (PeaScore) that;
        return (this.getScoreId() == null ? other.getScoreId() == null : this.getScoreId().equals(other.getScoreId()))
            && (this.getHzId() == null ? other.getHzId() == null : this.getHzId().equals(other.getHzId()))
            && (this.getSenatorId() == null ? other.getSenatorId() == null : this.getSenatorId().equals(other.getSenatorId()))
            && (this.getGamble() == null ? other.getGamble() == null : this.getGamble().equals(other.getGamble()))
            && (this.getDrugRelated() == null ? other.getDrugRelated() == null : this.getDrugRelated().equals(other.getDrugRelated()))
            && (this.getWhoring() == null ? other.getWhoring() == null : this.getWhoring().equals(other.getWhoring()))
            && (this.getBlack() == null ? other.getBlack() == null : this.getBlack().equals(other.getBlack()))
            && (this.getPrivateLending() == null ? other.getPrivateLending() == null : this.getPrivateLending().equals(other.getPrivateLending()))
            && (this.getOnlineLoan() == null ? other.getOnlineLoan() == null : this.getOnlineLoan().equals(other.getOnlineLoan()))
            && (this.getLoveCountry() == null ? other.getLoveCountry() == null : this.getLoveCountry().equals(other.getLoveCountry()))
            && (this.getAggresively() == null ? other.getAggresively() == null : this.getAggresively().equals(other.getAggresively()))
            && (this.getFamilyRship() == null ? other.getFamilyRship() == null : this.getFamilyRship().equals(other.getFamilyRship()))
            && (this.getInteConcept() == null ? other.getInteConcept() == null : this.getInteConcept().equals(other.getInteConcept()))
            && (this.getFinishStatus() == null ? other.getFinishStatus() == null : this.getFinishStatus().equals(other.getFinishStatus()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getScoreId() == null) ? 0 : getScoreId().hashCode());
        result = prime * result + ((getHzId() == null) ? 0 : getHzId().hashCode());
        result = prime * result + ((getSenatorId() == null) ? 0 : getSenatorId().hashCode());
        result = prime * result + ((getGamble() == null) ? 0 : getGamble().hashCode());
        result = prime * result + ((getDrugRelated() == null) ? 0 : getDrugRelated().hashCode());
        result = prime * result + ((getWhoring() == null) ? 0 : getWhoring().hashCode());
        result = prime * result + ((getBlack() == null) ? 0 : getBlack().hashCode());
        result = prime * result + ((getPrivateLending() == null) ? 0 : getPrivateLending().hashCode());
        result = prime * result + ((getOnlineLoan() == null) ? 0 : getOnlineLoan().hashCode());
        result = prime * result + ((getLoveCountry() == null) ? 0 : getLoveCountry().hashCode());
        result = prime * result + ((getAggresively() == null) ? 0 : getAggresively().hashCode());
        result = prime * result + ((getFamilyRship() == null) ? 0 : getFamilyRship().hashCode());
        result = prime * result + ((getInteConcept() == null) ? 0 : getInteConcept().hashCode());
        result = prime * result + ((getFinishStatus() == null) ? 0 : getFinishStatus().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", scoreId=").append(scoreId);
        sb.append(", hzId=").append(hzId);
        sb.append(", senatorId=").append(senatorId);
        sb.append(", gamble=").append(gamble);
        sb.append(", drugRelated=").append(drugRelated);
        sb.append(", whoring=").append(whoring);
        sb.append(", black=").append(black);
        sb.append(", privateLending=").append(privateLending);
        sb.append(", onlineLoan=").append(onlineLoan);
        sb.append(", loveCountry=").append(loveCountry);
        sb.append(", aggresively=").append(aggresively);
        sb.append(", familyRship=").append(familyRship);
        sb.append(", inteConcept=").append(inteConcept);
        sb.append(", finishStatus=").append(finishStatus);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}